import request from '@/util/request';

export const release = function(param){
	var url = '/rent/release';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getRentType = function(param){
	var url = '/configure/getRentType';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const rentList = function(param){
	var url = '/rent/rentList';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getRentDetail = function(param){
	var url = '/rent/getRentDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyRent = function(param){
	var url = '/rent/getMyRent';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const commentRent = function(param){
	var url = '/rent/commentRent';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getRentComment = function(param){
	var url = '/rent/getRentComment';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}